﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div id="top">
    <ul>
     
     <%
        if (Request.IsAuthenticated) {
        %>
               <li> Xin chào <b><%= Html.Encode(Page.User.Identity.Name) %></b>!</li>
               <li style="border-right: none"> <%= Html.ActionLink("Thoát", "logoff", "account") %> </li>
        <%
            }
            else {
        %> 
               <li><%= Html.ActionLink("Đăng nhập", "logon", "account") %></li>
               <li style="border-right: none"><%= Html.ActionLink("Đăng ký", "register", "account") %></li>
        <%
            }
        %>
    </ul>    
</div>
